﻿@using Model
@model Web.Models.CustomerModel
@{
    ViewBag.Title = "Default";
}

<html>
<head>
    <title>顾客列表</title>
    <script src="~/js/jquery-1.6.2.min.js"></script>
    <script src="/js/public_ajax.js" type="text/javascript"></script>
    <link href="/css/common.css" rel="stylesheet" type="text/css" />
    <link href="/css/UserManager.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div class="pageTitle">
        <p><img src="/css/image/tubiao_28.png" />您的位置：<span>顾客列表</span></p>
    </div>

    <div class="List_head">
        <div class="head_left"></div>
        <div class="head_bj">
            <div class="xiangxi">机构列表</div>
            <a class="xinZeng" href="Edit"></a>
        </div>
        <div class="head_right"></div>
    </div>

    <div class="list_table">
        <table class="dataShowTable" id="tb">
            <tr>
                <th class="checkbox_head_th">
                    全选<input type="checkbox" id="checkbox_head" onchange="checkAllOrNone('tb', this)" />
                </th>
                <th>姓名</th>
                <th>编号</th>
                <th>电话</th>
                <th>操作</th>
            </tr>
            @foreach (Customer item in Model.list)
            {
                <tr id="@("tr" + item.Id)">
                    <td><input type="checkbox" value="@item.Id" /></td>
                    <td style="text-align:center">@item.Name</td>
                    <td style="text-align:center">@item.SerialNumber</td>
                    <td style="text-align:center">@item.Phone</td>
                    <td width="150">
                        <a href="Edit?Id=@item.Id">修改</a>
                        <a href="javascript:void(0)" onclick="del('OrganizationEdit.aspx' , @item.Id)">删除</a>
                    </td>
                </tr>
            }
        </table>
        <div class="list-YeMa">
            <input type="hidden" id="IdList" />
            <input type="checkbox" id="checkbox_foot" class="checkbox_foot" onchange="checkAllOrNone('tb', this)" />

            <input type="button" id="btnBatchDelete" class="shanChuXuanZhongXiang" onclick="BatchDelete" />@*setHidValue*@
        </div>

        <div id="BOX_overlay">
            <div id="ajaxinfo"></div>
        </div>
    </div>
</body>
</html>
